package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * @author njf
 * @date 2017/10/20
 */

public class Mp3Module implements Parcelable {

    private String num;
    private String mp3Url;

    protected Mp3Module(Parcel in) {
        num = in.readString();
        mp3Url = in.readString();
    }

    public static final Creator<Mp3Module> CREATOR = new Creator<Mp3Module>() {
        @Override
        public Mp3Module createFromParcel(Parcel in) {
            return new Mp3Module(in);
        }

        @Override
        public Mp3Module[] newArray(int size) {
            return new Mp3Module[size];
        }
    };

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getMp3Url() {
        return mp3Url;
    }

    public void setMp3Url(String mp3Url) {
        this.mp3Url = mp3Url;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(num);
        dest.writeString(mp3Url);
    }
}
